// MyXMLStream.h: interface for the CMyXMLStream class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYXMLSTREAM_H__A3F5D1B4_8105_4F6C_9CC5_B4336A4C8CEA__INCLUDED_)
#define AFX_MYXMLSTREAM_H__A3F5D1B4_8105_4F6C_9CC5_B4336A4C8CEA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
using namespace std;
class CMyXMLStream  
{
public:
	void SetBufferIncreaseSize(long newSize);
	void Increasebuffer();
	char * Data();
	long GetDataSize();
	CMyXMLStream();
	virtual ~CMyXMLStream();

	void Clear();

	CMyXMLStream& operator << (char *pData);
	CMyXMLStream& operator << (string& data);
	CMyXMLStream& operator << (CMyXMLStream& Stream);

protected:
	long	m_bufferIncreaseSize;
	char	*m_pbuffer;		
	long	m_bufferSize;
	long	m_insertPoint;
};

#endif // !defined(AFX_MYXMLSTREAM_H__A3F5D1B4_8105_4F6C_9CC5_B4336A4C8CEA__INCLUDED_)
